import request from '@/utils/request'

// 获取验证码接口
export const getVerifyCode = () => request({
    url: '/VueHandler/AdminLoginAndRegHandler?action=verification',
    method: 'get'
})

// 校验验证码接口
export const checkVeri=(veri:string)=>request({
    url:"/VueHandler/AdminLoginAndRegHandler?action=checkVerification",
    method:"get",
    params:{
        veri:veri
    }
})
// 登录接口
export const loginApi = (data: any) => request({
    url:"/VueHandler/AdminLoginAndRegHandler?action=login",
    method:"post",
    data:data
})